<div class="Filter">
    Filter:    
    <select onchange="<?php echo selectAction('status',"&id=$id")?>" >
        <option value="-1">select status</option>
        <?php echo liststatus($status)?>
    </select>   
    <?php echo buttonResetPage()?>
</div>
<form name="form_admin" method="post" action="<?php echo formAction('updatestatus')?>" >
    <table width="100%" cellpadding="4" cellspacing="1" id="tblsort">
    	<tr class="headtb" nodrag="true" nodrop="true">
            <td width="5%">#</td>
            <td width="5%"><?php echo inputCheckAll()?></td>
            <td width="20%" ><?php echo _NAME?></td>
            <td width="10%" ><?php echo Status?></td>
            <td width="30%"><?php echo _ACTIONS?></td>
    		<td>&nbsp;</td>
    	</tr>
    <?php
    foreach($hoteltypes as $i => $hoteltype)
    {
    ?>
    	<tr>
            <td>
                <input class="ordertext" id="listorder_<?php echo $i?>" name="listorder[]"
    			value="<?php echo getOrderList($i)?>"/>
            </td>
            <td align="center"><?php echo inputCheck($hoteltype['iId'])?></td>
            <td>
    			<?php echo linkAction('edit',$hoteltype['cName'],'id='.$hoteltype['iId'])?>
                <input type="hidden" name="listid[]" value="<?php echo $hoteltype['iId']?>" />
    		</td>
            <td align="center">
                <select name="liststatus[]">
                    <?php echo liststatus($hoteltype['iStatus'])?>
                </select>
            </td>
    		<td align="center">
    			<?php echo linkAction('edit',_EDIT,'id='.$hoteltype['iId'])?>
    			-
                <?php echo linkAction('delete',_DELETE,'id='.$hoteltype['iId'])?>
    		</td>
    		<TD></TD>
    	</tr>
    <?php
    }//end for
    if(count($hoteltypes)==0)
    {
    ?>
    	<tr style=" height:20px;" nodrag="true">
    		<td width="3%" colspan="3" align=center><font color="Red"><b>not found hotel type !</b></font></td>
    	</tr>

    <?php
    }
    ?>
    </table>
    <?php  echo $show_page; ?>
</form>
<script type="text/javascript">
(new TableDnD).init("tblsort");
</script>